<template>
    <div class="box">
        <header>
        <van-search v-model="value" shape="round" placeholder="搜索用户名、课程" />
        <div class="search">
            <img src="img/shaixuanya@2x.png" alt="">
            <span>筛选</span>
        </div>
        </header>
        <ul>
            <li>
                <div @click="watchImg" class="left"><img src="img/tupian4@2x.png" alt=""></div>
                <div class="right">
                    <h3>幼儿初级-小小设计师</h3>
                    <div class="bottom">
                        <span>55人已开通</span>
                        <button @click="pushPeople">人员分配</button>
                    </div>
                </div>
            </li>
            
        </ul>
    </div>
</template>
<script>
import { ImagePreview } from 'vant';
export default {
    data() {
        return {
            value:''
        }
    },
    methods: {
        watchImg(){
            ImagePreview(['img/tupian4@2x.png']);
        },
        pushPeople(){
            this.$router.push({
                path:'/dispeople'
            })
        }
    },
}
</script>
<style lang="scss" scoped>
.box{
    min-height: 100%;
    background: #F7F9FA;
}
/deep/ .van-search{
    flex:1;
    
border-radius: 0.2rem;
}
    header{
        background: white;
        display: flex;
        align-items: center;
        width: 100%;
        justify-content: space-between;
        padding-right: 0.2rem;
        box-sizing: border-box;
        border-bottom: 0.01rem solid #eee;
        .search{
            width: 1.24rem;
            height: 0.5rem;
            border: 0.01rem solid #C3C3C3;
            border-radius: 0.2rem;
            display: flex;
            align-items: center;
            padding: 0 0.2rem;
            box-sizing: border-box;
            justify-content: space-between;
            span{
                font-size: 0.22rem;
                font-family: PingFang SC;
                font-weight: 400;
                color: #333333;
            }
            img{
                width: 0.22rem;
                height: 0.22rem;
            }
        }
    }
    ul{
        padding:0 0.24rem 0.16rem;
        box-sizing: border-box;
        li{
            display: flex;
            background: white;
            margin-top: 0.16rem;
            .left{
                width: 2.2rem;
                height: 2.2rem;
                img{
                    width: 100%;
                    height: 100%;
                }
            }
            .right{
                padding: 0.22rem;
                box-sizing: border-box;
                display: flex;
                width: 4.8rem;
                flex-direction: column;
                justify-content: space-between;
                h3{
                    font-size: 0.3rem;
                    font-family: PingFang SC;
                    font-weight: bold;
                    color: #333333;
                }
                .bottom{
                    display: flex;
                    align-items: center;
                    justify-content: space-between;
                    span{
                    font-size: 0.22rem;
                    font-family: PingFang SC;
                    font-weight: 300;
                    color: #7F7F7F;
                    }
                    button{
                        width: 1.5rem;
                        height: 0.56rem;
                        background: #FF802D;
                        border-radius: 0.06rem;
                        line-height: 0.56rem;
                        font-size: 0.22rem;
                        border: none;
                        text-align: center;
                        font-family: PingFang SC;
                        font-weight: bold;
                        color: #FFFFFF;
                    }
                }
            }
        }
    }
</style>